package 每日练习;
//导包
import java.sql.SQLOutput;
import java.util.Scanner;

//大于60分输出合格，小于60分输出不合格
public class text17 {
    public static void main(String[] args)
    {
        //创建对象
        Scanner sc = new Scanner(System.in);
        //接收对象
        int num = sc.nextInt();
        //成绩num在0~100的范围,除以10就在0~10的范围
        if(num>=0 && num<=100)
        {
            switch(num / 10)
            {
                case 0:
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                    System.out.println("成绩不合格");
                    break;
                case 6:
                case 7:
                case 8:
                case 9:
                case 10:
                    System.out.println("成绩合格");
                    break;
            }
        }
        else
        {
            System.out.println("输入成绩不符合0~100的范围");
        }
    }
}
